package com.bootx.entity;

import com.fasterxml.jackson.annotation.JsonView;
import jakarta.persistence.Column;
import jakarta.persistence.Entity;
import jakarta.validation.constraints.NotEmpty;

/**
 * @author black
 */
@Entity
public class Lottery extends BaseEntity<Long>{

    @Column(nullable = false,updatable = false,unique = true)
    @JsonView({EditView.class,PageView.class})
    private Long code;

    @NotEmpty
    @Column(nullable = false,updatable = false,unique = true)
    @JsonView({EditView.class,PageView.class})
    private String name;

    // 赔率
    private Double odds;

    @JsonView({EditView.class,PageView.class})
    private Integer walletIndex;

    @JsonView({EditView.class,PageView.class})
    private Integer predictionCount;

    @JsonView({EditView.class,PageView.class})
    private Integer baseBetMoney;

    @JsonView({EditView.class,PageView.class})
    private Integer baseTimes;

    @JsonView({EditView.class,PageView.class})
    private Integer maxBetMoney;

    @JsonView({EditView.class,PageView.class})
    private Integer continuousLostTimes;

    private Double balance;

    private String startTime;

    private String endTime;

    public Long getCode() {
        return code;
    }

    public void setCode(Long code) {
        this.code = code;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Double getOdds() {
        return odds;
    }

    public void setOdds(Double odds) {
        this.odds = odds;
    }

    public Integer getWalletIndex() {
        return walletIndex;
    }

    public void setWalletIndex(Integer walletIndex) {
        this.walletIndex = walletIndex;
    }

    public Integer getPredictionCount() {
        return predictionCount;
    }

    public void setPredictionCount(Integer predictionCount) {
        this.predictionCount = predictionCount;
    }

    public Integer getBaseBetMoney() {
        return baseBetMoney;
    }

    public void setBaseBetMoney(Integer baseBetMoney) {
        this.baseBetMoney = baseBetMoney;
    }

    public Integer getBaseTimes() {
        return baseTimes;
    }

    public void setBaseTimes(Integer baseTimes) {
        this.baseTimes = baseTimes;
    }

    public Integer getMaxBetMoney() {
        return maxBetMoney;
    }

    public void setMaxBetMoney(Integer maxBetMoney) {
        this.maxBetMoney = maxBetMoney;
    }

    public Integer getContinuousLostTimes() {
        return continuousLostTimes;
    }

    public void setContinuousLostTimes(Integer continuousLostTimes) {
        this.continuousLostTimes = continuousLostTimes;
    }

    public Double getBalance() {
        return balance;
    }

    public void setBalance(Double balance) {
        this.balance = balance;
    }

    public String getStartTime() {
        return startTime;
    }

    public void setStartTime(String startTime) {
        this.startTime = startTime;
    }

    public String getEndTime() {
        return endTime;
    }

    public void setEndTime(String endTime) {
        this.endTime = endTime;
    }
}
